package com.zhouyu.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.stereotype.Component;

/**
 * @author leimingchao
 * create 2025-05-03 11:16
 */
//@Component
public class EmployeeService {

	@Autowired
	private Employee employee;

	public void test() {
		System.out.println(employee);
	}

	public void test2() {
		System.out.println(a());
	}

	/**
	 * 在IOC容器中找beanName为user的bean对象
	 */
	@Lookup(value = "employee")
	public Employee a() {

		return null;
	}
}
